import base64 from "./base64.json";

const filePath = import.meta.env.DEV ? "../site/" : "./site/";

const data = {
  三峡库区: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 200,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 8,
        x: 800,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 9,
        x: 900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 10,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 11,
        x: 1100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 12,
        x: 1200,
        y: 300,
        symbolSize: 0,
        label: {
          position: "top",
        },
      },
      {
        name: "",
        id: 13,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 14,
        x: 1400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 15,
        x: 1500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 16,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 17,
        x: 1700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 18,
        x: 1800,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 19,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 20,
        x: 2000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 21,
        x: 2100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 22,
        x: 2200,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 23,
        x: 2300,
        y: 300,
        symbolSize: 0,
        label: {
          position: "top",
        },
      },
      {
        name: "",
        id: 24,
        x: 2400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 25,
        x: 2500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 26,
        x: 2600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 27,
        x: 2700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 28,
        x: 2800,
        y: 300,
        symbolSize: 0,
        label: {
          position: "top",
        },
      },
      {
        name: "",
        id: 29,
        x: 2900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 30,
        x: 3000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "三峡坝址",
        id: 31,
        x: 3100,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        name: "壁南河",
        id: 32,
        x: 300,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "嘉陵江",
        id: 33,
        x: 600,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "御临河",
        id: 34,
        x: 900,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "龙溪河",
        id: 35,
        x: 1000,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "渠溪河",
        id: 36,
        x: 1400,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "黄金河",
        id: 37,
        x: 1700,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "汝溪河",
        id: 38,
        x: 1800,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "小江",
        id: 39,
        x: 2000,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "汤溪河",
        id: 40,
        x: 2100,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "梅溪河",
        id: 41,
        x: 2400,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "大宁河",
        id: 42,
        x: 2600,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "沿渡河",
        id: 43,
        x: 2700,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "香溪河",
        id: 44,
        x: 2900,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "塘河",
        id: 45,
        x: 200,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "綦江",
        id: 46,
        x: 500,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "木洞河",
        id: 47,
        x: 800,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "黎香溪",
        id: 48,
        x: 1100,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "乌江",
        id: 49,
        x: 1200,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "龙河",
        id: 50,
        x: 1600,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "磨刀溪",
        id: 51,
        x: 2200,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "长滩河",
        id: 52,
        x: 2300,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "大溪河",
        id: 53,
        x: 2500,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
      {
        name: "清港河",
        id: 54,
        x: 2800,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 12,
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("zt-r-b", [0, -22], [20, 60]),
        name: "朱沱",
        mark: true,
        stcd: "60104800",
        type: "水文站",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "7",
        label: planSiteMark("ct-r-b", [0, -22], [20, 60]),
        name: "寸滩",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "9",
        target: "10",
      },
      {
        source: "10",
        target: "10",
      },
      {
        source: "10",
        target: "11",
      },
      {
        source: "11",
        target: "12",
      },
      {
        source: "12",
        target: "13",
      },
      {
        source: "13",
        target: "13",
        label: planSiteMark("qxc-r-b", [0, -30], [20, 70]),
        name: "清溪场",
        mark: true,
        stcd: "60105700",
        type: "水文站",
      },
      {
        source: "13",
        target: "14",
      },
      {
        source: "14",
        target: "15",
      },
      {
        source: "15",
        target: "15",
      },
      {
        source: "15",
        target: "16",
      },
      {
        source: "16",
        target: "17",
      },
      {
        source: "17",
        target: "17",
      },
      {
        source: "17",
        target: "18",
      },
      {
        source: "18",
        target: "19",
      },
      {
        source: "19",
        target: "19",
        label: planSiteMark("wx-r-t", [0, 35], [20, 60]),
        name: "万县",
        mark: true,
        stcd: "60106000",
        type: "水文站",
      },
      {
        source: "19",
        target: "20",
      },
      {
        source: "20",
        target: "21",
      },
      {
        source: "21",
        target: "22",
      },
      {
        source: "22",
        target: "23",
      },
      {
        source: "23",
        target: "24",
      },
      {
        source: "24",
        target: "24",
      },
      {
        source: "24",
        target: "25",
      },
      {
        source: "25",
        target: "26",
      },
      {
        source: "26",
        target: "26",
      },
      {
        source: "26",
        target: "27",
      },
      {
        source: "27",
        target: "27",
      },
      {
        source: "27",
        target: "28",
      },
      {
        source: "28",
        target: "29",
      },
      {
        source: "29",
        target: "30",
      },
      {
        source: "30",
        target: "30",
        label: planSiteMark("mh-r-b", [0, -22], [20, 60]),
        name: "庙河",
        mark: true,
        stcd: "60106860",
        type: "水文站",
      },
      {
        source: "30",
        target: "31",
      },
      {
        source: "31",
        target: "31",
      },
      {
        source: "32",
        target: "3",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "33",
        target: "6",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("bb-r-r", [-25, 0], [60, 20]),
        name: "北碚",
        mark: true,
        stcd: "60703800",
        type: "水文站",
      },
      {
        source: "34",
        target: "9",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "35",
        target: "10",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "36",
        target: "14",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "37",
        target: "17",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "38",
        target: "18",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "39",
        target: "20",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "40",
        target: "21",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "41",
        target: "24",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "42",
        target: "26",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "43",
        target: "27",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "44",
        target: "29",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "45",
        target: "2",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "46",
        target: "5",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "47",
        target: "8",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "48",
        target: "11",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "49",
        target: "12",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("wl-r-l", [25, 0], [60, 20]),
        name: "武隆",
        mark: true,
        stcd: "60803000",
        type: "水文站",
      },
      {
        source: "50",
        target: "16",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "51",
        target: "22",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "52",
        target: "23",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "53",
        target: "25",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "54",
        target: "28",
        lineStyle: {
          width: 1,
        },
      },
    ],
  },
  向家坝库区: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "向家坝坝址",
        id: 8,
        x: 2100,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        name: "西宁河",
        id: 9,
        x: 1200,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "中都河",
        id: 10,
        x: 1400,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "团结河",
        id: 11,
        x: 400,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "细沙河",
        id: 12,
        x: 700,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "大汶溪",
        id: 13,
        x: 1600,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("xld-r-b", [0, -30], [20, 70]),
        name: "溪洛渡",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "7",
        label: planSiteMark("ps-r-b", [0, -20], [20, 60]),
        name: "屏山",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "9",
        target: "5",
        label: planSiteMark("ojc-r-rt", [-35, 10], [70, 20]),
        name: "欧家村",
      },
      {
        source: "10",
        target: "5",
        label: planSiteMark("lsc-r-lt", [35, 10], [70, 20]),
        name: "龙山村",
      },
      {
        source: "11",
        target: "2",
      },
      {
        source: "12",
        target: "3",
        label: planSiteMark("hjw-r-l", [35, 0], [70, 20]),
        name: "何家湾",
      },
      {
        source: "13",
        target: "6",
        label: planSiteMark("xh-r-l", [30, 0], [60, 20]),
        name: "新华",
      },
    ],
  },
  溪洛渡库区: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 8,
        x: 2200,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 9,
        x: 2500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "溪洛渡坝址",
        id: 10,
        x: 2800,
        y: 300,
        symbolSize: 0,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        name: "尼姑河",
        id: 11,
        x: 300,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "西溪河",
        id: 12,
        x: 500,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "金阳河",
        id: 13,
        x: 1600,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "美姑河",
        id: 14,
        x: 2200,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "西苏角河",
        id: 15,
        x: 2500,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "西苏角河",
        id: 16,
        x: 1000,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("bht-r-b", [0, -30], [20, 70]),
        name: "白鹤滩",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "5",
        label: planSiteMark("cj-r-b", [0, -25], [20, 60]),
        name: "春江",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "9",
        target: "10",
      },
      {
        source: "11",
        target: "2",
      },
      {
        source: "12",
        target: "2",
        label: planSiteMark("zj", [30, 20], [60, 40]),
        name: "昭觉",
      },
      {
        source: "13",
        target: "6",
      },
      {
        source: "14",
        target: "8",
        label: planSiteMark("mg-r-r", [-30, 0], [60, 20]),
        name: "美姑",
      },
      {
        source: "15",
        target: "9",
      },
      {
        source: "16",
        target: "4",
        label: planSiteMark("dsd-r-r", [-35, 0], [70, 20]),
        name: "大沙店",
      },
    ],
  },
  向家坝至朱沱: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 8,
        x: 2200,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 9,
        x: 2500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 10,
        x: 2800,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 11,
        x: 3100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "岷江",
        id: 12,
        x: 700,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "沱江",
        id: 13,
        x: 2500,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "横江",
        id: 14,
        x: 400,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "南广河",
        id: 15,
        x: 1000,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "长宁河",
        id: 16,
        x: 1900,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "永宁河",
        id: 17,
        x: 2200,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "赤水河",
        id: 18,
        x: 2800,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: mainReachMark("r", "JY17"),
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "5",
        label: mainReachMark("w", "CJ110"),
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "9",
        target: "10",
      },
      {
        source: "10",
        target: "10",
        label: mainReachMark("w"),
      },
      {
        source: "10",
        target: "11",
      },
      {
        source: "11",
        target: "11",
        label: mainReachMark("r", "CJ01"),
      },
      {
        source: "12",
        target: "3",
        label: tributaryMark("r", "高场"),
      },
      {
        source: "13",
        target: "9",
        label: tributaryMark("r", "富顺"),
      },
      {
        source: "14",
        target: "2",
        label: tributaryMark("r", "横江"),
      },
      {
        source: "15",
        target: "4",
      },
      {
        source: "16",
        target: "7",
      },
      {
        source: "17",
        target: "8",
      },
      {
        source: "18",
        target: "10",
      },
    ],
  },
  乌东德库区: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 8,
        x: 2200,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 9,
        x: 2500,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "乌东德坝址",
        id: 10,
        x: 2800,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        name: "雅砻江",
        id: 11,
        x: 400,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "普隆河",
        id: 12,
        x: 1900,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "鯵鱼河",
        id: 13,
        x: 2200,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "龙川江",
        id: 14,
        x: 1000,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "勐果河",
        id: 15,
        x: 1600,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("pzh-r-b", [0, -30], [20, 70]),
        name: "攀枝花",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "3",
        label: planSiteMark("sdz-r-b", [0, -30], [20, 70]),
        name: "三堆子",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "5",
        label: planSiteMark("lj-r-b", [0, -25], [20, 60]),
        name: "龙街",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "9",
        target: "9",
        label: planSiteMark("wdd-r-b", [0, -30], [20, 70]),
        name: "乌东德",
      },
      {
        source: "9",
        target: "10",
      },
      {
        source: "11",
        target: "2",
        label: planSiteMark("tzl-r-l", [35, 0], [70, 20]),
        name: "桐子林",
      },
      {
        source: "12",
        target: "7",
      },
      {
        source: "13",
        target: "8",
        label: planSiteMark("kh-r-l", [30, 0], [60, 20]),
        name: "可河",
      },
      {
        source: "14",
        target: "4",
        label: planSiteMark("xhgy-r-l", [40, 0], [80, 20]),
        name: "小黄瓜园",
      },
      {
        source: "15",
        target: "6",
      },
    ],
  },
  白鹤滩库区: {
    data: [
      {
        name: "",
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 2,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 3,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 4,
        x: 1000,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 5,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 6,
        x: 1600,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "",
        id: 7,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "白鹤滩坝址",
        id: 8,
        x: 2200,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        name: "大桥河",
        id: 9,
        x: 700,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "黑水河",
        id: 10,
        x: 1900,
        y: 100,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "普渡河",
        id: 11,
        x: 400,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "小江",
        id: 12,
        x: 1000,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "以礼河",
        id: 13,
        x: 1300,
        y: 500,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("wdd-r-b", [0, -30], [20, 70]),
        name: "乌东德",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "6",
        label: planSiteMark("ht-r-b", [0, -25], [20, 60]),
        name: "华弹",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "9",
        target: "3",
      },
      {
        source: "10",
        target: "7",
        label: planSiteMark("nn-r-l", [30, 0], [60, 20]),
        name: "宁南",
      },
      {
        source: "11",
        target: "2",
        label: planSiteMark("ng-r-r", [-30, 0], [60, 20]),
        name: "尼格",
      },
      {
        source: "12",
        target: "4",
      },
      {
        source: "13",
        target: "5",
      },
    ],
  },
  两坝间: {
    data: [
      {
        name: "三峡坝址",
        id: 1,
        x: 100,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
      {
        id: 2,
        x: 200,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 3,
        x: 300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 4,
        x: 400,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 5,
        x: 500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 6,
        x: 600,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 7,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 8,
        x: 800,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "葛洲坝坝址",
        id: 9,
        x: 900,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
      },
    ],
    links: [
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "3",
        label: planSiteMark("ltx-r-b", [0, -30], [20, 70]),
        name: "乐天溪",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "4",
        label: planSiteMark("hlm-r-b", [0, -30], [20, 70]),
        name: "黄陵庙",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "5",
        label: planSiteMark("lt-r-b", [0, -20], [20, 60]),
        name: "莲沱",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "6",
        label: planSiteMark("sp-r-b", [0, -20], [20, 60]),
        name: "石牌",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "7",
        label: planSiteMark("psb-r-b", [0, -30], [20, 70]),
        name: "平善坝",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "8",
        label: planSiteMark("njg-r-b", [0, -30], [20, 70]),
        name: "南津关",
      },
      {
        source: "8",
        target: "9",
      },
    ],
  },
  长江中下游: {
    data: [
      {
        id: 1,
        x: 100,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 2,
        x: 300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 3,
        x: 500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 4,
        x: 700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 5,
        x: 900,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 6,
        x: 1100,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 7,
        x: 1300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 8,
        x: 1500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 9,
        x: 1700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 10,
        x: 2000,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 11,
        x: 2100,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 12,
        x: 2300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 13,
        x: 2500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 14,
        x: 2700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 15,
        x: 2900,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 16,
        x: 3100,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 17,
        x: 3300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 18,
        x: 3500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 19,
        x: 1900,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 20,
        x: 3700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 21,
        x: 3900,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 35,
        x: 4100,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 36,
        x: 4300,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 37,
        x: 4500,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 38,
        x: 4700,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 39,
        x: 4900,
        y: 300,
        symbolSize: 0,
      },
      {
        id: 40,
        x: 5100,
        y: 300,
        symbolSize: 0,
      },

      {
        id: 22,
        x: 300,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 23,
        x: 700,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 24,
        x: 650,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 25,
        x: 750,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 26,
        x: 1300,
        y: 400,
        symbolSize: 0,
      },
      {
        id: 27,
        x: 700,
        y: 400,
        symbolSize: 0,
      },
      {
        id: 28,
        x: 1500,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 29,
        x: 2700,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 30,
        x: 2650,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 31,
        x: 2750,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 32,
        x: 3700,
        y: 500,
        symbolSize: 0,
      },
      {
        id: 33,
        x: 100,
        y: 200,
        symbolSize: 0,
      },
      {
        id: 34,
        x: 100,
        y: 600,
        symbolSize: 0,
      },
      {
        id: 41,
        x: 4100,
        y: 100,
        symbolSize: 0,
      },
      {
        id: 42,
        x: 4700,
        y: 500,
        symbolSize: 0,
      },
    ],
    links: [
      {
        source: "1",
        target: "1",
        label: planSiteMark("yc-r-b", [0, -20], [20, 60]),
        name: "宜昌",
      },
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "2",
        label: planSiteMark("yd-r-b", [0, -20], [20, 60]),
        name: "宜都",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "3",
        label: planSiteMark("zc-r-b", [0, -20], [20, 60]),
        name: "枝城",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "4",
        target: "4",
        label: planSiteMark("szk-r-b", [0, -30], [20, 70]),
        name: "松滋口",
      },
      {
        source: "4",
        target: "5",
      },
      {
        source: "5",
        target: "5",
        label: planSiteMark("mjd-r-b", [0, -30], [20, 70]),
        name: "马家店",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "6",
        label: planSiteMark("zj-r-b", [0, -20], [20, 60]),
        name: "枝江",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "7",
        target: "7",
        label: planSiteMark("yjn-r-b", [0, -30], [20, 70]),
        name: "杨家脑",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "8",
        label: planSiteMark("tpk-r-b", [0, -30], [20, 70]),
        name: "太平口",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "9",
        target: "9",
        label: planSiteMark("cjw-r-b", [0, -30], [20, 70]),
        name: "陈家湾",
      },
      {
        source: "9",
        target: "10",
      },
      {
        source: "10",
        target: "10",
        label: planSiteMark("shas-r-b", [0, -20], [20, 60]),
        name: "沙市",
      },
      {
        source: "10",
        target: "11",
      },
      {
        source: "11",
        target: "11",
        label: planSiteMark("ga-r-b", [0, -20], [20, 60]),
        name: "公安",
      },
      {
        source: "11",
        target: "12",
      },
      {
        source: "12",
        target: "12",
        label: planSiteMark("hx-r-b", [0, -20], [20, 60]),
        name: "郝穴",
      },
      {
        source: "12",
        target: "13",
      },
      {
        source: "13",
        target: "13",
        label: planSiteMark("xc-r-b", [0, -20], [20, 60]),
        name: "新厂",
      },
      {
        source: "13",
        target: "14",
      },
      {
        source: "14",
        target: "14",
        label: planSiteMark("ock-r-b", [0, -30], [20, 70]),
        name: "藕池口",
      },
      {
        source: "14",
        target: "15",
      },
      {
        source: "15",
        target: "15",
        label: planSiteMark("shis-r-b", [0, -20], [20, 60]),
        name: "石首",
      },
      {
        source: "15",
        target: "16",
      },
      {
        source: "16",
        target: "16",
        label: planSiteMark("dxk-r-b", [0, -30], [20, 70]),
        name: "调弦口",
      },
      {
        source: "16",
        target: "17",
      },
      {
        source: "17",
        target: "17",
        label: planSiteMark("jl-r-b", [0, -20], [20, 60]),
        name: "监利",
      },
      {
        source: "17",
        target: "18",
      },
      {
        source: "18",
        target: "18",
        label: planSiteMark("gxz-r-b", [0, -30], [20, 70]),
        name: "广兴洲",
      },
      {
        source: "18",
        target: "19",
      },
      {
        source: "19",
        target: "19",
        label: planSiteMark("jjm-r-b", [0, -30], [20, 70]),
        name: "荆江门",
      },
      {
        source: "19",
        target: "20",
      },
      {
        source: "20",
        target: "20",
        label: planSiteMark("lht-r-b", [0, -30], [20, 70]),
        name: "莲花塘",
      },
      {
        source: "20",
        target: "21",
      },
      {
        source: "21",
        target: "21",
        label: planSiteMark("ls-r-b", [0, -20], [20, 60]),
        name: "罗山",
      },
      {
        source: "21",
        target: "35",
      },
      {
        source: "35",
        target: "36",
      },
      {
        source: "36",
        target: "36",
        label: planSiteMark("hk-r-b", [0, -20], [20, 60]),
        name: "汉口",
      },
      {
        source: "36",
        target: "37",
      },
      {
        source: "37",
        target: "37",
        label: planSiteMark("jj-r-b", [0, -20], [20, 60]),
        name: "九江",
      },
      {
        source: "37",
        target: "38",
      },
      {
        source: "38",
        target: "39",
      },
      {
        source: "39",
        target: "39",
        label: planSiteMark("aq-r-b", [0, -20], [20, 60]),
        name: "安庆",
      },
      {
        source: "39",
        target: "40",
      },
      {
        source: "40",
        target: "40",
        label: planSiteMark("dt-r-b", [0, -20], [20, 60]),
        name: "大通",
      },
      {
        source: "2",
        target: "22",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "22",
        target: "22",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("gbz-r-l", [30, 0], [70, 20]),
        name: "高坝洲",
      },
      {
        source: "4",
        target: "23",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "23",
        target: "24",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "24",
        target: "24",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("xjk-r-t", [0, 40], [20, 70]),
        name: "新江口",
      },
      {
        source: "23",
        target: "25",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "25",
        target: "25",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("sdg-r-t", [0, 40], [20, 70]),
        name: "新江口",
      },
      {
        source: "7",
        target: "26",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "26",
        target: "27",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "8",
        target: "28",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "28",
        target: "28",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("mts-r-l", [30, 0], [70, 20]),
        name: "弥陀寺",
      },
      {
        source: "14",
        target: "29",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "29",
        target: "30",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "30",
        target: "30",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("ocg-r-t", [0, 40], [20, 70]),
        name: "藕池(管)",
      },
      {
        source: "29",
        target: "31",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "31",
        target: "31",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("ock-r-t", [0, 40], [20, 70]),
        name: "藕池(康)",
      },
      {
        source: "20",
        target: "32",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "32",
        target: "32",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("clj-r-l", [30, 0], [70, 20]),
        name: "城陵矶",
      },
      {
        source: "35",
        target: "41",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "41",
        target: "41",
        label: planSiteMark("xt-r-l", [30, 0], [60, 20]),
        name: "仙桃",
      },
      {
        source: "38",
        target: "42",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "42",
        target: "42",
        lineStyle: {
          width: 1,
        },
        label: planSiteMark("hk-r-l", [30, 0], [60, 20]),
        name: "湖口",
      },
    ],
  },
  map: {
    data: [
      {
        name: "",
        id: 1,
        x: 0,
        y: 300,
        symbolSize: 0,
      },
      {
        name: "攀枝花",
        id: 2,
        x: 500,
        y: 300,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "乌东德",
        id: 3,
        x: 1000,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#000",
        },
        mark: true,
        stcd: "60102500",
        type: "水库",
      },
      {
        name: "白鹤滩",
        id: 4,
        x: 1500,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#000",
        },
        mark: true,
        stcd: "60102810",
        type: "水库",
      },
      {
        name: "溪洛渡",
        id: 5,
        x: 2000,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#000",
        },
        mark: true,
        stcd: "60103165",
        type: "水库",
      },
      {
        name: "向家坝",
        id: 6,
        x: 2500,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#000",
        },
        mark: true,
        stcd: "60103385",
        type: "水库",
      },
      {
        name: "水富",
        id: 7,
        x: 3200,
        y: 300,
        symbolSize: 0,

        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "宜宾",
        id: 8,
        x: 3500,
        y: 300,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "泸州",
        id: 9,
        x: 4000,
        y: 300,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "重庆",
        id: 10,
        x: 5000,
        y: 300,
        symbolSize: 0,

        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "涪陵",
        id: 11,
        x: 6000,
        y: 300,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 18,
          fontWeight: "800",
          lineHeight: 25,
          color: "#0099FF",
        },
      },
      {
        name: "三峡",
        id: 12,
        x: 7800,
        y: 300,
        symbol: "image://" + base64.site,
        symbolSize: 30,
        label: {
          fontSize: 16,
          fontWeight: "800",
          color: "#000",
        },
        mark: true,
        stcd: "60106980",
        type: "水库",
      },
      {
        name: "",
        id: 13,
        x: 8200,
        y: 300,
        symbolSize: "none",
        label: {
          fontSize: 18,
          fontWeight: "800",
          color: "#0099FF",
        },
      },
      {
        name: "雅砻江",
        id: 14,
        x: 500,
        y: -200,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "岷江",
        id: 15,
        x: 3500,
        y: -200,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "沱江",
        id: 16,
        x: 4000,
        y: -200,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "17",
        id: 17,
        x: 5000,
        y: -400,
        symbolSize: 0,

        label: {
          formatter: "{a|合川}",
          rich: {
            a: {
              fontSize: 18,
              padding: [0, 0, 0, 60],
              fontWeight: "800",
              lineHeight: 25,
              color: "#0099FF",
            },
          },
        },
      },
      {
        name: "嘉陵江",
        id: 18,
        x: 5000,
        y: -800,
        symbolSize: 0,
        label: {
          position: "top",
          fontSize: 16,
          fontWeight: "800",
          color: "#0099FF",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "渠\n江",
        id: 19,
        x: 5800,
        y: -400,
        symbolSize: 0,
        label: {
          position: "insideLeft",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "涪\n江",
        id: 20,
        x: 4400,
        y: -400,
        symbolSize: 0,
        label: {
          position: "insideRight",
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "横江",
        id: 21,
        x: 3200,
        y: 800,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "乌江",
        id: 22,
        x: 6000,
        y: 800,
        symbolSize: 0,
        label: {
          fontSize: 16,
          fontWeight: "bold",
          color: "rgb(74, 144, 226)",
        },
      },
      {
        name: "",
        id: 23,
        x: 10000,
        y: 300,
        symbolSize: 0,
      },
    ],
    links: [
      {
        source: "1",
        target: "2",
      },
      {
        source: "2",
        target: "3",
      },
      {
        source: "3",
        target: "4",
      },
      {
        source: "5",
        target: "6",
      },
      {
        source: "6",
        target: "7",
      },
      {
        source: "4",
        target: "5",
        label: siteMark("bht", [0, -30], [20, 70]),
        name: "白鹤滩",
        mark: true,
        stcd: "60102850",
        type: "水文站",
      },
      {
        source: "7",
        target: "8",
      },
      {
        source: "8",
        target: "9",
      },
      {
        source: "12",
        target: "23",
      },
      {
        source: "9",
        target: "10",
        label: siteMark("ztsl", [0, 35], [20, 60]),
        name: "朱沱",
        mark: true,
        stcd: "60104800",
        type: "水文站",
      },
      {
        source: "10",
        target: "11",
        label: siteMark("ctsl", [0, 35], [20, 60]),
        name: "寸滩",
        mark: true,
        stcd: "60105400",
        type: "水文站",
      },
      {
        source: "11",
        target: "12",
        label: siteMark("qxcsl", [-90, -30], [20, 70]),
        name: "清溪场",
        mark: true,
        stcd: "60105700",
        type: "水文站",
      },
      {
        source: "11",
        target: "12",
        label: siteMark("bdsl", [30, -25], [20, 60]),
        name: "巴东",
        mark: true,
        stcd: "60106700",
        type: "水文站",
      },
      {
        source: "11",
        target: "12",
        label: siteMark("mhsl", [80, -25], [20, 60]),
        name: "庙河",
        mark: true,
        stcd: "60106860",
        type: "水文站",
      },
      {
        source: "12",
        target: "13",
        label: siteMark("hlmsl", [20, -30], [20, 70]),
        name: "黄陵庙",
        mark: true,
        stcd: "60107170",
        type: "水文站",
      },
      {
        source: "14",
        target: "2",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "15",
        target: "8",
        lineStyle: {
          width: 1,
        },
        label: siteMark("gc", [30, 5], [60, 20]),
        name: "高场",
        mark: true,
        stcd: "60603300",
        type: "水文站",
      },
      {
        source: "15",
        target: "8",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "16",
        target: "9",
        lineStyle: {
          width: 1,
        },
        label: siteMark("fs", [30, 5], [60, 20]),
        name: "富顺",
        mark: true,
        stcd: "60613950",
        type: "水文站",
      },
      {
        source: "16",
        target: "9",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "17",
        target: "10",
        lineStyle: {
          width: 1,
        },
        label: siteMark("bbsl", [30, 10], [60, 20]),
        name: "北碚",
        mark: true,
        stcd: "60703800",
        type: "水文站",
      },

      {
        source: "18",
        target: "17",
        lineStyle: {
          width: 1,
        },
        label: siteMark("wsz", [30, 0], [60, 20]),
        name: "武胜",
        mark: true,
        stcd: "60703700",
        type: "水文站",
      },
      {
        source: "18",
        target: "18",
        lineStyle: {
          width: 1,
        },
      },
      {
        source: "19",
        target: "17",
        lineStyle: {
          width: 1,
        },
        label: siteMark("ldx", [25, -30], [20, 70]),
        name: "罗渡溪",
        mark: true,
        stcd: "60712000",
        type: "水文站",
      },
      {
        source: "19",
        target: "17",
        lineStyle: {
          width: 0,
        },
      },
      {
        source: "20",
        target: "17",
        lineStyle: {
          width: 1,
        },
        label: siteMark("xhb", [0, -30], [20, 70]),
        name: "小河坝",
        mark: true,
        stcd: "60715955",
        type: "水文站",
      },
      {
        source: "20",
        target: "17",
        lineStyle: {
          width: 0,
        },
      },
      {
        source: "21",
        target: "7",
        lineStyle: {
          width: 1,
        },
        label: siteMark("hj", [-30, 10], [60, 20]),
        name: "横江",
        mark: true,
        stcd: "60407100",
        type: "水文站",
      },
      {
        source: "21",
        target: "7",
        lineStyle: {
          width: 0,
        },
      },
      {
        source: "22",
        target: "11",
        lineStyle: {
          width: 1,
        },
        label: siteMark("wlsl", [30, 0], [60, 20]),
        name: "武隆",
        mark: true,
        stcd: "60803000",
        type: "水文站",
      },
      {
        source: "22",
        target: "11",
        lineStyle: {
          width: 0,
        },
      },
      {
        source: "12",
        target: "23",
        label: siteMark("yc", [-40, -25], [20, 60]),
        name: "宜昌",
        mark: true,
        stcd: "60107300",
        type: "水文站",
      },
      {
        source: "12",
        target: "23",
        label: siteMark("zc", [20, -25], [20, 60]),
        name: "枝城",
        mark: true,
        stcd: "60107400",
        type: "水文站",
      },
      {
        source: "12",
        target: "23",
        label: siteMark("ss", [130, -25], [20, 60]),
        name: "沙市",
        mark: true,
        stcd: "60108300",
        type: "水文站",
      },
    ],
  },
};

function mainReachMark(img, strName = "") {
  return {
    show: true,
    lineHeight: 0,
    formatter: ["{a|}", "{b|" + strName + "}"].join("\n"),
    offset: [10, -10],
    rich: {
      a: {
        width: 20,
        height: 25,
        backgroundColor: {
          image: filePath + img + "-sanjiao.png",
        },
      },
      b: {
        fontWeight: "600",
        fontSize: 12,
        padding: [0, 15, 20, 0],
      },
    },
  };
}

function tributaryMark(img, strName = "") {
  return {
    show: true,
    lineHeight: 0,

    formatter: ["{a|}", "{b|" + strName + "}"].join("\n"),
    offset: [11, -5],
    rotate: 0,
    rich: {
      a: {
        width: 20,
        height: 25,
        backgroundColor: {
          image: filePath + img + "-sanjiao.png",
        },
      },
      b: {
        fontSize: 12,
        fontWeight: "600",
        padding: [15, 50, 0, 0],
      },
    },
  };
}

function siteMark(img, offset = [], size = []) {
  return {
    show: true,
    lineHeight: 0,
    formatter: ["{a|}"].join("\n"),
    rotate: 0,
    offset,
    rich: {
      a: {
        width: size[0],
        height: size[1],
        backgroundColor: {
          image: filePath + img + ".png",
        },
      },
    },
  };
}

function planSiteMark(img, offset = [], size = []) {
  return {
    show: true,
    lineHeight: 0,
    formatter: ["{a|}"].join("\n"),
    rotate: 0,
    offset,
    rich: {
      a: {
        width: size[0],
        height: size[1],
        backgroundColor: {
          image: filePath + img + ".png",
        },
      },
    },
  };
}

export default data;
